﻿namespace Nello
{
    using System;

    public class Logger
    {
        public const string LOG_FILE_KEY = "LogFile";

        public static void Log(string s)
        {
            FileUtil.AppendText(AppSettings.Get("LogFile"), DateTime.Now + ":" + s);
        }

        public static void Log(string name, object val)
        {
            if (val == null)
            {
                val = "null";
            }
            Log(name + "=" + val);
        }
    }
}

